//
//  EditBabyActivityView.h
//  BabyHelper
//
//  Created by  thomas on 11-2-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BabyActivityEntry.h"
#import "Dao.h"
#import "ConstantStrings.h"

@interface EditBabyActivityView : UIViewController {
	UILabel				*unitLabel;
	UILabel				*amountLabel;
	UITextField			*amountTextField;
	UILabel				*commentsLabel;
	UITextField			*commentsTextField;
	UIDatePicker		*datePicker;
	UISegmentedControl  *categoryControl;
	BabyActivityEntry   *currentBabyActivityEntry;
}

@property (nonatomic, retain) IBOutlet BabyActivityEntry *currentBabyActivityEntry;
@property (nonatomic, retain) IBOutlet UILabel *unitLabel;
@property (nonatomic, retain) IBOutlet UILabel *amountLabel;
@property (nonatomic, retain) IBOutlet UITextField *amountTextField;
@property (nonatomic, retain) IBOutlet UILabel *commentsLabel;
@property (nonatomic, retain) IBOutlet UITextField *commentsTextField;
@property (nonatomic, retain) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, retain) IBOutlet UISegmentedControl *categoryControl;

-(IBAction)backgroundTap:(id)sender;
-(IBAction)toggleControls:(id)sender;
-(void)SaveBabyActivityEntry;
-(IBAction)toggleSave;
-(BOOL)DataValidation;
@end
